#include<iostream>
#include<string>
using namespace std;

struct CandyBar
{
    string brand;
    int weight;
    int calory;
};

int main()
{
    CandyBar* C = new CandyBar[3];
    C[0].brand = "brand 1";
    C[0].weight = 11;
    C[0].calory = 111;
    C[1].brand = "brand 2";
    C[1].weight = 22;
    C[1].calory = 222;
    C[2].brand = "brand 3";
    C[2].weight = 33;
    C[2].calory = 333;
    for ( int i = 0; i < 3; i++)
    {
        cout << "brand:" << C[i].brand << endl;
        cout << "weight:" << C[i].weight << endl;
        cout << "calory:" << C[i].calory << endl;
    };
    delete [] C;

    return 0;
}